import {
	http
} from '../request/index.js';
// 帐号密码登录
export const login = (params) => {
	return http.post('/api/user/login', params);
}
// 注册
export const register = (params) => {
	return http.post('/api/user/register', params);
}
// 图片上传
export const upload = (params) => {
	return http.post('/api/upload/upload', params);
}
// 个人中心 
export const userdetail = (params) => {
	return http.get('/api/user/detail', params);
}
// 个人信息修改
export const userupdate = (params) => {
	return http.post('/api/user/update', params);
}
//app 微信登录
export const third = (params) => {
	return http.post('/api/user/third', params);
}
// 会员地址列表
export const addresslist = (params) => {
	return http.get('/api/user.address/list', params);
}
// 地址添加
export const addressadd = (params) => {
	return http.post('/api/user.address/add', params);
}
// 编辑地址更新地址
export const addressedit = (params) => {
	return http.post('/api/user.address/update', params);
}
// 删除地址
export const addressedel = (params) => {
	return http.post('/api/user.address/del', params);
}
// 地址详情
export const addresseinfo = (params) => {
	return http.get('/api/user.address/detail', params);
}
// 重置 密码
export const resetpwd = (params) => {
	return http.post('/api/user/resetpwd', params);
}
// 订单列表
export const orderlist= (params) => {
	return http.post('/api/order/list',params);
}
// 订单详情
export const orderdetail = (params) => {
	return http.get('/api/order/detail', params);
}
// 反馈问题类型列表
export const reportconfig = (params) => {
	return http.get('/api/reportconfig/list', params);
}
// 确认反馈
export const report = (params) => {
	return http.post('/api/user.report/add', params);
}

// 申请售后
export const apply_refund= (params) => {
	  	return http.post('/api/order/apply_refund',params);
	  }	  
	  // 售后详情
	// export const apply_refund= (params) => {
	// 	  	return http.post('/api/order/apply_refund',params);
	// 	  }	    
// 收藏列表
export const collection= (params) => {
	  	return http.get('/api/user.goodscollect/list',params);
	  }		
//  会员帐单
export const bill= (params) => {
	  	return http.get('/api/user.bill/list',params);
}	
//商品收藏删除
export const collection_del= (params) => {
	  	return http.post('/api/user.goodscollect/delete',params);
}
// 微信小程序登录
export const third_applet= (params) => {
	  	return http.post('/api/user/third_applet',params);
}
